Prizm Content Connect
How to Configure C# Samples

Installation

  1. Ensure that Microsoft’s Internet Information Service (IIS) is enabled (http://msdn.microsoft.com/en-us/library/ms181052(v=vs.80).aspx) on the computer that will be running the C# sample.
  2. Begin the installation of Prizm Content Connect for Windows.
  3. During the installation of Prizm Content Connect, make sure to select the following options:

    • Configure samples with IIS.
    • Re-register ASP.NET 4.0 with IIS: The Prizm Content Connect C# sample requires ASP.NET 4.0 to function. If ASP.NET is already configured, this will not undo any current configurations.

    • After the installation, test the sample application in a browser:

C# Directory Structure

The C# sample is installed to C:\prizm\samples and has the following directory layout:

C# Code Overview

File / Folder

Description

App_Code folder

Contains the supporting classes for the RESTful communication between the viewer and web server. While the code for the classes can be modified as needed, API modifications need careful care if changed. See pcc.ashx. Most of the current web server RESTful interface passes the request onto Prizm Services. This keeps the application web tier fairly easy to understand and maintain.

html5/js folder

Contains the required JavaScript files making up the HTML5 viewer application.

html5/img folder

Contains graphics for the HTML5 viewer.

html5/css folder

Contains web style sheets for the HTML5 viewer.

html5/Default.aspx

The default web starting page in this sample. The HTML5 viewer’s code gets loaded by this page.

pcc.ashx

File that defines and links the required Prizm RESTful interface to the files in the App_Code folder. The client side Viewer JavaScript object will use this RESTful interface as described in PCC RESTful API.

pcc.config

Contains modifiable parameters for document location, saved markup record location, and Prizm Services connection settings.

web.config

Contains IIS web tier settings.

Sample.doc

The test document used to illustrate the functionality of the HTML5 viewer.

overwriteOverlayTemplate.html

The template file that defines the view of the dialog that warns when an annotation record is being saved to an existing record name. More details are available in the "Templates" sub-section of the Design Basics topic.

printOverlayTemplate.html

The template file that defines the view of the dialog that provides print functionality. More details are available in the "Templates" sub-section of the Design Basics topic.

unsavedChangesOverlayTemplate.html

The template file that defines the view of the dialog that warns when an action may result in lost annotation changes. More details are available in the "Templates" sub-section of the Design Basics topic.

viewerTemplate.html

The template file that defines the user interface of the HTML5 viewer application. More details are available in the "Templates" sub-section of the Design Basics topic.

contextMenuTemplate.html

The template file that defines the user interface of the annotation context menus. More details are available in the "Templates" sub-section of the Design Basics topic.

language.json

Contains the informational text messages that appear in the viewer’s UI. This file can be edited so that different messages and/or different languages appear in the viewer.

This file is required for the Viewer to function.

predefinedSearch.json

This data file contains JSON formatted information defining search queries that will appear as selectable items in the viewer. The idea is make available common search queries in order to speed work flow while reducing errors.

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback